package com.zijie.rbac.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.Value;

import java.time.LocalDateTime;

@TableName("t_rbac_perm")
@Getter
@Setter
public class Perm {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField(value = "name",whereStrategy = FieldStrategy.NOT_EMPTY)
    private String name;
    private String description;
    private Boolean enabled;
    private String createdBy;
    private String updatedBy;
    private LocalDateTime createdTime;
    private LocalDateTime updatedTime;
    @TableField(exist = false)
    private String[] resourceNames;
}
